#pragma once

#include "vgeviewport.h"

#include <QWidget>

QT_BEGIN_NAMESPACE
namespace Ui
{
    class VGViewportWidget;
}
QT_END_NAMESPACE

class VGViewportWidget : public QWidget
{
    Q_OBJECT

public:
    explicit VGViewportWidget(QWidget *parent = nullptr);
    ~VGViewportWidget();
    void Construct();

signals:
    void resized(int width, int height);

protected:
    void resizeEvent(QResizeEvent* event) override;

private:
    Ui::VGViewportWidget *ui;

    VGEViewport* mViewport = nullptr;
};
